(*)Barrel vault of Fig 1.8.12(*)
C=40; m=7; n=11;
R=10; 
h6=0; h5=0;     h1=3; h2=5; h3=6; h4=8; 
E=rinit(m-1,n,1,1)|[1,0,0; 1,1,0]#rinit(m,n-1,1,1)|[1,0,0; 1,0,1];
F=bc(R,C/6,2)|E;
G=verad(0,0,90-C)|F;
D=R*sin|C;
T=R-R*cos|C;
SB=pex|(lam(1,0)|(G#tranid(D,-T)|G)
       #tranid(2*D, -2*T)|G);

LA=verad(0,0,90-C)|bc(R, C/6, 2)|{[1,0,0],[1,6,0]};
LA=pex|(lam(1,0)|(LA#tranid(D,-T)|LA)
      #tranid(2*D, -2*T)|LA);
(*)LA={[6.427876, 7.660444, 0],  [0, 10, 0], 
[12.85575, 5.320889, 0],	 [-6.427876, 7.660444, 0],
	 [-12.85575, 5.320889, 0], [19.28363, 2.981333, 0]};(*)
LA=rin(3,n,2)|LA;
LB={[6.427876, 7.660444+h1, 0],  [0, 10+h2, 0], 
[12.85575, 5.320889+h3, 0], [-6.427876, 7.660444+h4, 0],
	 [-12.85575, 5.3208890, 0], 
[19.28363, 2.981333, 0]};
LB=rin(3,n,2)|LB;
FF=nov(2,0.1,LA,LB)|SB;
(*) View vh( view point, view centre, view rise) (*)
use &,vm(2), vt(2), c(1,2),
vh(120*R,3*R,-300*R, 0,0,R, 0,1, R);
 clear;   draw FF;
<>
